<ul>
	<li>
		<?php 
			$lunch = get_post_meta($post->ID, 'ba_lunch_menu_file', true); 
			$path = $lunch['url'];
			if(sizeof($lunch) > 1)
			{
			$link_lunch = my_option('link_lunch');
		?>
			<a href="<?php echo $link_lunch;?>"><img src="<?php echo $path ?>"><span class="title">Lunch</span></a>
	</li>
	<li>	
		<?php
			}
			$dinner = get_post_meta($post->ID, 'ba_dinner_menu_file', true); 
			$path = $dinner['url'];
			if(sizeof($dinner) > 1)
			{
		?>
			<a href="#"><img src="<?php echo $path ?>"><span class="title">Dinner</span></a>
	</li>
	<li>	
		<?php
			}
			$drink = get_post_meta($post->ID, 'ba_drink_menu_file', true); 
			$path = $drink['url'];
			if(sizeof($drink) > 1)
			{
		?>	
		<a href="#"><img src="<?php echo $path ?>"><span class="title">Drink</span></a>
	</li>
	<li>
		<?php
			}
			$kids = get_post_meta($post->ID, 'ba_kids_menu_file', true); 
			$path = $kids['url'];
			if(sizeof($kids) > 1)
			{
		?>
		<a href="#"><img src="<?php echo $path ?>"><span class="title">Kids</span></a>
	</li>
	<li>
		<?php
			}
			$dessert = get_post_meta($post->ID, 'ba_dessert_menu_file', true); 
			$path = $dessert['url'];
			if(sizeof($dessert) > 1)
			{
		?>
		<a href="#"><img src="<?php echo $path ?>"><span class="title">Desert</span></a>
	</li>
	<li>
		<?php
			}
			$take_out = get_post_meta($post->ID, 'ba_take_out_menu_file', true); 
			$path = $take_out['url'];
			if(sizeof($take_out) > 1)
			{
		?>
		<a href="#"><img src="<?php echo $path ?>"><span class="title">Take Out</span></a>
	</li>	
	<?php } ?>
</ul>